<@ms.html5>
	<@ms.nav title="意见反馈" back=true></@ms.nav>
	<@ms.panel>
				<@ms.searchForm  name="searchForm" id="searchForm" action="${managerPath}/feedback/list.do">
							<@ms.date label="反馈时间" name="feedbackTime" value="${feedbackTime?default('')}" />
						<@ms.searchFormButton>
								<@ms.queryButton id="submitSearch"/>								
						</@ms.searchFormButton>
				</@ms.searchForm>
				
				<@ms.table head=['<th class="text-center">序号</th>','<th class="text-center">反馈时间</th>','<th class="text-center">反馈内容</th>','<th class="text-center">联系电话</th>']>
						<#if feedbackList?has_content>
		        			<#list feedbackList as feedback>
		           				<tr>
		           					<td class="text-center">${feedback_index+1}</td>
						            <td class="text-center">${feedback.feedbackTime?string("yyyy-MM-dd HH:mm:ss")}</td>
						            <td class="text-center">${feedback.feedbackContent?default("-")}</td>
						            <td class="text-center">${feedback.feedbackTel?default("-")}</td>
						        </tr>
		           			</#list>
		           		<#else>	
			           		<tr>
						         <td colspan="4" class="text-center">
						            <@ms.nodata/>
								</td>
					        </tr>
		           		</#if>
					</@ms.table>
					<!--分页样式 开始-->
					<#if page?has_content>
						<@ms.pagehelper page=page url="${managerPath}/feedback/list.do?${params}"/>
					</#if>	
	</@ms.panel>
</@ms.html5>
<script>
	$(function(){
		//根据条件查询反馈
		$("#submitSearch").click(function() {
			$("#searchForm")[0].submit();
		});
	});
	//js监听回车键 
	document.onkeydown = function(e) {
		e = e ? e : window.event;
		var keyCode = e.which ? e.which : e.keyCode;
		if (keyCode == 13) {
			$("#searchForm")[0].submit();
		}
	}
</script>